def fun_bmi(person,height,weight):
    '''功能：根据身高和体重计算BMI指数
       person: 姓名
       height: 身高，单位：米
       weight: 体重，单位：千克
       '''
    print(person + "的身高：" + str(height) + "米 \t 体重：" + str(weight) + "千克")
    bmi=weight/(height*height)
    print(person + "的BMI指数为："+str(bmi))
    if bmi<18.5:
        print("您的体重过轻 ~@_@~\n")
    if bmi>=18.5 and bmi<24.9:
        print("正常范围，注意保持 (-_-)\n")
    if bmi>=24.9 and bmi<29.9:
        print("您的体重过重 ~@_@~\n")
    if bmi>=29.9:
        print("肥胖 ^@_@^\n")
fun_bmi("路人甲",1.83,60)
fun_bmi("路人乙",1.60,50)
# fun_bmi("路人甲",1.83)
# fun_bmi(50,"路人乙",1.60)
# fun_bmi("路人乙",50,1.60)
fun_bmi(weight = 50,person = "路人乙",height = 1.60)
